var bombPrefab:Transform;
var savedTime = 0;


function Update () {

 
 var seconds : int = Time.time;
	var oddEven = (seconds % 2);
	
	if(oddEven)
	{
		CreateBomb(seconds);
	}
 	
 }

function CreateBomb(seconds)
{
	if(seconds!=savedTime)
	{
		var bomb = Instantiate(bombPrefab, GameObject.Find("spawnPoint").transform.position, Quaternion.identity);

		bombPrefab.rigidbody.AddForce(transform.forward );
		
	
		savedTime = seconds;
		
	
		}
}
	


